// @ts-ignore
/* eslint-disable */
import { request } from 'umi';

/** 获取 线索上报  - 选题计划 提交 分页  POST */
export async function getCuesActivePage(options?: { [key: string]: any }) {
  return request<BaseResponseBean.responsePage<CuesActiveData.ActivePage[]>>('/cues/active/page', {
    method: 'POST',
    data: options || {},
  });
}

/** 保存 线索上报  - 选题计划 提交  POST */
export async function saveCuesActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/active/save', {
    method: 'POST',
    data: options || {},
  });
}

/** 获取 线索上报  - 选题计划 提交 详情  POST */
export async function getCuesActiveDetails(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesActiveData.ActiveDetails>>('/cues/active/details', {
    method: 'POST',
    data: options || {},
  });
}

/** 录用  POST */
export async function adoptActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesAdoptData.Adopt>>('/cues/active/adopt', {
    method: 'POST',
    data: options || {},
  });
}

/** 录用  POST */
export async function adoptsActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<CuesAdoptData.Adopt>>('/cues/active/adopts', {
    method: 'POST',
    data: options || {},
  });
}

/** 评分  POST */
export async function scoreActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/active/score', {
    method: 'POST',
    data: options || {},
  });
}

/** 评分  POST */
export async function scoresActive(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<string>>('/cues/active/scores', {
    method: 'POST',
    data: options || {},
  });
}

/**获取 主动报送 组织 列表 POST */
export async function treeOrganization(options?: { [key: string]: any }) {
  return request<BaseResponseBean.response<PropagateData.Organization[]>>(
    '/cues/active/organization/tree',
    {
      method: 'POST',
      data: options || {},
    },
  );
}
